package vsvm.gui.forms;

import java.awt.BorderLayout;
import java.awt.Frame;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

import vsvm.gui.VSVMInternalFrame;

public class SummaryDialog extends VSVMInternalFrame {

	private JPanel jContentPane = null;
	private JTable tblSummary = null;

	/**
	 * This method initializes tblSummary	
	 * 	
	 * @return javax.swing.JTable	
	 */
	private JTable getTblSummary() {
		if (tblSummary == null) {
			tblSummary = new JTable() {

				@Override
				public boolean isCellEditable(int arg0, int arg1) {
					return false;
				}
				
			
			};
		}
		return tblSummary;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	/**
	 * This is the default constructor
	 */
	public SummaryDialog(String title, Object[][] data) {
		super(title);
		initialize();
		setTitle(title);
		tblSummary.setModel(new DefaultTableModel(data, new Object[] {"Parameter", "Value"}));
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(397, 282);
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getTblSummary(), java.awt.BorderLayout.CENTER);
		}
		return jContentPane;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
